﻿using System;
using System.Data;
using System.Linq;
using System.Windows;
using WPFExcelReport.Chart;
using System.Windows.Controls;
using WPFExcelReport.Helpers;
using System.ComponentModel;
using ReflectionStudio.Core.Events;
namespace WPFExcelReport
{
    /// <summary>
    /// Interaction logic for EditEventWindow.xaml
    /// </summary>
    public partial class TSVK05
    {
        public TSVK05()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VVKPOS();
            this.DataContext = MV;
            InitializeComponent();
        }
        public override void QueryCommand(object sender, RoutedEventArgs e)
        { 
            dwData = TBMain.NewRow();
            dwData["VKPMANDANT"] = app.Mandant;
            dwData["VKPAUFKRS"] = KRS;
            dwData["VKPAUFLFD"] = LFD;
            dwData["VKPAUFPOS"] = POS;
            SResult = TMV.QueryVKPOS(dwData, 1);
            MergeData(SResult, true);
            if (POS == "000")
            {
                AUF = "K" + KRS + LFD + POS + LIEFSCH.PadRight(8);
            } 
        }
        public override void OnAppModeChg()
        {
            //base.OnAppModeChg();
        }
    }

}
